/**
 * 
 */
package com.zhanggz.mypattern.cor.handler;

/**
 * 责任链模式，价格处理人，负责处理客户的折扣申请
 * 
 * @author alex
 * @Date Jun 23, 2015
 */
public abstract class PriceHandler {

	/**
	 * 直接后继，用户传递请求
	 */
	protected PriceHandler successor;

	public void setSuccessor(PriceHandler successor) {
		this.successor = successor;
	}

	/**
	 * 处理折扣申请
	 * 
	 * @param discount
	 */
	public abstract void processDiscount(float discount);
}
